package org.csu.onlineedubackend.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("student_course")
public class StudentCourse {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    @TableField("student_id")
    private Integer studentId;
    
    @TableField("course_id")
    private Integer courseId;
    
    private String level;
    private String status;
    
    @TableField("paid_at")
    private LocalDateTime paidAt;
    
    private Float progress;

//    private LocalDateTime lastLearnTime;

    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getStudentId() {
        return studentId;
    }
    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }
    public Integer getCourseId() {
        return courseId;
    }
    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }
    public String getLevel() {
        return level;
    }
    public void setLevel(String level) {
        this.level = level;
    }
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public LocalDateTime getPaidAt() {
        return paidAt;
    }
    public void setPaidAt(LocalDateTime paidAt) {
        this.paidAt = paidAt;
    }
    public Float getProgress() {
        return progress;
    }
    public void setProgress(Float progress) {
        this.progress = progress;
    }
//    public LocalDateTime getLastLearnTime() {
//        return lastLearnTime;
//    }
//    public void setLastLearnTime(LocalDateTime lastLearnTime) {
//        this.lastLearnTime = lastLearnTime;
//    }

    
    @TableField("last_learn_time")
    private LocalDateTime lastLearnTime;
}